<?php
namespace app\admin\model;

use think\Model;
use traits\model\SoftDelete;

class ProjectBind extends Model
{
    use SoftDelete;

    protected $name = 'project_bind';

    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = 'deletetime';

    // 追加属性
    protected $append = [

    ];

    public function owner()
    {
        return $this->belongsTo('Owner', 'uid', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}